package org.example.demo16_zhongjie;


public class Main {
    public static void main(String[] args) {
        WTO wto = new WTO(new UnitedNationsMediator(null, null, null));
        WFC wfc = new WFC(new UnitedNationsMediator(null, null, null));
        WHO who = new WHO(new UnitedNationsMediator(null, null, null));

        UnitedNationsMediator mediator = new UnitedNationsMediator(wto, wfc, who);

        wto = new WTO(mediator);
        wfc = new WFC(mediator);
        who = new WHO(mediator);

        wto.sendMessage("Let's discuss trade agreements.");
        wfc.sendMessage("We need to address financial cooperation.");
        who.sendMessage("Healthcare initiatives are crucial.");

        // The messages will be coordinated by the UnitedNationsMediator to the respective agencies.
    }
}